package com.laze.mywanandroid.ui.main.fragment.home

import android.content.Context
import android.widget.ImageView
import com.bumptech.glide.Glide
import com.youth.banner.loader.ImageLoader

/**
 * create by Laze1
 * on 2020/7/24-9:48
 */
class BannerImageLoader: ImageLoader() {
    override fun displayImage(context: Context, path: Any?, imageView: ImageView) {
        val imagePath = (path as com.laze.mywanandroid.bean.Banner).imagePath
        Glide.with(context).load(imagePath).into(imageView)
    }
}